package com.yc.txx.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.yc.txx.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 天下行租车-用户表-4 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2024-05-07
 */
public interface UserMapper extends BaseMapper<User> {

    @Update("UPDATE txx_user SET password = #{pwd} WHERE ename = #{uname}")
    int updateUser(String pwd,String uname);

    @Select("select * from txx_user where ename = #{ename}")

    List<User> selectUsersByEname(String ename);
}
